<?php
namespace Pw\MainBundle\Entity;

use Doctrine\ORM\EntityRepository;

class GuideRepository extends EntityRepository
{
    public function getVisible()
    {
		$em = $this->getEntityManager();
		$query = $em->createQuery('SELECT g FROM PwMainBundle:Guide g WHERE g.visible = :visible')->setParameter('visible', true);
		return $query->getResult();
    }
    public function getInvisible()
    {
		$em = $this->getEntityManager();
		$query = $em->createQuery('SELECT g FROM PwMainBundle:Guide g WHERE g.visible = :visible')->setParameter('visible', false);
		return $query->getResult();
    }
}
